<?php
require_once(dirname(__FILE__).'/config.php');
require_once(DEDEINC.'/datalistcp.class.php');
require_once(DEDEINC.'/common.func.php');
setcookie('ENV_GOBACK_URL',$dedeNowurl,time()+3600,'/');



if($dopost=="ok")
{

        if(!is_numeric($mb_14_c) or !intval($mb_14_c))
		{
		$mb_14_c='30';
		}
		$query = "Update `#@__mb`
      	set mb_1='$mb_1',
      	mb_2='$mb_2',
		mb_3='$mb_3',
      	mb_4='$mb_4',
      	mb_5='$mb_5',
		mb_8_c='$mb_6',
      	mb_1_c ='$mb_1_c',
      	mb_2_c ='$mb_2_c',
      	mb_3_c ='$mb_3_c',
      	mb_4_c ='$mb_4_c',
      	mb_5_c ='$mb_5_c',
		mb_6_c ='$mb_6_c', 
		mb_7_c ='$mb_7_c',
		mb_10_c ='$adminmb',
		mb_11_c ='$adminmb5',
		mb_12_c ='$mb_12_c',
		mb_13_c ='$mb_13_c',
		mb_14_c ='$mb_14_c',
		mb_9_c ='$mb_9_c'
		where aid='0'; ";
		if(!$dsql->ExecuteNoneQuery($query))
		{
			ShowMsg("更新数据表时出错，请检查原因！".$dsql->GetError(),"javascript:;");
			exit();
		}
		else
		{
		
	ShowMsg("修改成功","188_mb.php");
	exit();
	
		}
	//mb_6_c用户名。mb_7_c密码

}

$sql = "Select * from #@__mb where aid='0'";
$dlist = new DataListCP();
$dlist->SetTemplet(DEDEADMIN."/templets/188_mb.htm");
$dlist->SetSource($sql);
$dlist->display();

?>